package cn.sccdlg.ssm.dao;

import cn.sccdlg.ssm.domain.Member;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author RaoShuang
 * @emil 991207823@qq.com
 * @date 2020/10/27 21:15
 * 会员持久层
 */
@Repository
@Mapper
public interface IMemberDao {

    /**
     * 根据id查询会员
     * @param id 会员id
     */
    @Select("SELECT * FROM member WHERE id=#{id}")
    Member findById(String id) throws Exception;
}
